<!DOCTYPE html>
<!--suppress ALL -->
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head th:replace="_fragments :: head(~{::title})">
    <meta charset="UTF-8">
    <!--适应移动端-->
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <title>归档</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css">
    <link rel="stylesheet" href="../static/css/me.css">
</head>
<body>
<!--导航-->
<nav th:replace="_fragments :: nav(4)" class="ui inverted attached segment m-padded-tb-mini m-opacity-mini fly">
    <div class="ui container">
        <div class="ui inverted secondary stackable menu">
            <h2 class="ui teal header item">Swim's Blog</h2>
            <a href="#" class="item m-mobile-hide m-item"><i class="home icon"></i>首页</a>
            <a href="#" class="item m-mobile-hide m-item"><i class="idea icon"></i>分类</a>
            <a href="#" class="item m-mobile-hide m-item"><i class="tags icon"></i>标签</a>
            <a href="#" class="item m-mobile-hide m-item"><i class="clone icon"></i>归档</a>
            <a href="#" class="item m-mobile-hide m-item"><i class="info icon"></i>关于我</a>

            <div class="right m-item item m-mobile-hide ">
                <div class="ui icon inverted transparent input">
                    <input type="text" title="" placeholder="Search for something">
                    <i class="search link icon"></i>
                </div>
            </div>
        </div>
    </div>
    <a href="#" class="ui menu toggle  black icon button m-top-right m-mobile-show">
        <i class="sidebar icon"></i>
    </a>

</nav>

<!--中间内容部分-->
<div class="m-container-small m-padded-tb-large">
    <div class="ui container">
        <div class="ui top attached padded segment ">
            <div class="ui middle aligned two column grid">
                <div class="column">
                    <h3 class="ui teal header">归档</h3>
                </div>
                <div class="right aligned column">
                    共 <h3 class="ui  orange header m-inline-block" th:text="${blogCount}">14</h3> 篇
                </div>
            </div>
        </div>

        <th:block th:each="item : ${archiveMap}">
            <h2 class="ui header center aligned yellow" th:text="${item.key}">2020</h2>
            <div class="ui fluid vertical menu" th:each="detail : ${item.value}">
                <a href="#" th:href="@{/blog/{id}(id=${detail.id})}" class="item" >
                    <span>
                        <i class="circle green icon"></i> <span th:text="${detail.title}">学习清单</span>
                        <div class="ui teal basic left m-padded-mini label" th:text="${#dates.format(detail.updateTime,'MM-dd')}">6月26</div>
                    </span>
                    <div class="ui orange basic left label" th:text="${detail.flag}">原创</div>
                </a>
<!--/*-->
                <a href="#" class="item" target="_blank">
                    <span>
                        <i class="circle green icon"></i> 学习清单
                        <div class="ui teal basic left m-padded-mini label">6月26</div>
                    </span>
                    <div class="ui orange basic left label">原创</div>
                </a>
                <a href="#" class="item" target="_blank">
                    <span>
                        <i class="circle green icon"></i> 学习清单
                        <div class="ui teal basic left m-padded-mini label">6月26</div>
                    </span>
                    <div class="ui orange basic left label">原创</div>
                </a>
                <a href="#" class="item" target="_blank">
                    <span>
                        <i class="circle green icon"></i> 学习清单
                        <div class="ui teal basic left m-padded-mini label">6月26</div>
                    </span>
                    <div class="ui orange basic left label">原创</div>
                </a>
<!--*/-->
            </div>
        </th:block>

    </div>
</div>


<br>
<br>

<!--底部-->
<footer th:replace="_fragments :: footer" class="ui inverted segment vertical m-padded-tb-massive">
    <div class="ui container center aligned">
        <div class="ui  inverted stackable divided grid">
            <div class="three wide column">
                <img src="../static/img/Qr.jpg" class="ui rounded image" style="width: 110px;">
            </div>
            <div class="three wide column">
                <h4 class="ui inverted header">最新blog</h4>
                <div class="ui inverted link list">
                    <a href="#" class="item ">My story </a>
                    <a href="#" class="item ">My story </a>
                    <a href="#" class="item ">My story </a>
                </div>
            </div>
            <div class="three wide column">
                <h4 class="ui inverted header">最新blog</h4>
                <div class="ui inverted link list">
                    <a href="#" class="item ">My story </a>
                    <a href="#" class="item ">My story </a>
                    <a href="#" class="item ">My story </a>
                </div>
            </div>
            <div class="seven wide column">
                <h4 class="ui inverted header">最新blog</h4>
                <p class="m-text-spaced m-opacity-mini">只要学不死，就往死里学，加油，噢利给！！！</p>
            </div>

        </div>
        <div class="ui inverted section divider"></div>
        <p class="m-text-thin m-text-spaced m-opacity-mini ">Copyright@2020-2021 Swim's Blog Designed by RYX</p>

    </div>
</footer>

<th:block th:replace="_fragments :: script">
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.js"></script>
</th:block>


<script>
    $('.menu.toggle').click(function () {
        $('.m-item').toggleClass('m-mobile-hide');
    });




</script>

</body>
<script>

</script>
</html>